package com.kgc.dao;

import com.kgc.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author :qinya
 * @PackageName:com.kgc.dao
 * @ClassName: User
 * @Description: TODO
 * @date : 2025/5/15,0:27
 */
@Mapper
public interface UserMapper {
    User selectUserByLoginName(String loginName);

    User selectUserById(int id);

    List<User> selectUserByPage(@Param("params") Map<String, Object> params);

    int updateUserByManager(@Param("user") User user);

    int insertUser(@Param("user") User user);

    int deleteUserByManager(int id);

    int checkUserEmail(String email);

    int updateUserPassword(@Param("id") int id, @Param("password") String password);


}
